package com.example.demo_test.DTO;

import com.example.demo_test.Entity.Message;
import com.example.demo_test.Entity.User;

import java.util.List;

/**
 * @author zhanghong
 * @date 2021/6/16  0016 9:08
 */
public class UserAndMessage {
    private User user;
    private List<Message> messageList;

    public UserAndMessage(User user, List<Message> messageList) {
        this.user=user;
        this.messageList=messageList;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Message> getMessageList() {
        return messageList;
    }

    public void setMessageList(List<Message> messageList) {
        this.messageList = messageList;
    }
}
